package com.mms.enumerate;


/**
 * 预约表枚举
 */
public enum ReserveFlowProgress {
    CompleteVisit(3, "完成看诊"),
    processed(0, "待处理"),
    appointments(1, "预约成功"),
    appointment(-1, "预约失败"),
    seeing(2, "看诊中"),
    YouTake(4, "取药成功"),
    ped_available(8, "暂无空闲床位"),
    pending(16, "暂无空闲护士"),
    Northeast(32, "药品库存不足"),
    customs(64, "待出院"),
    UserCancel(127, "用户取消"),
    discharged(128, "已出院");

    private int key;

    private String value;

    ReserveFlowProgress(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValueByKey(int key) {
        ReserveFlowProgress[] values = ReserveFlowProgress.values();
        for (ReserveFlowProgress reserveFlowProgress : values) {
            if (reserveFlowProgress.key == key) {
                return reserveFlowProgress.value;
            }
        }
        return "";
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
